/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package view;

import java.awt.Graphics;
import model.Graph;
import model.Route;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Owner
 */
public class MapTest {
    
    Map test = new Map();
    
    public MapTest() {
        super();
    }
    
    @BeforeClass
    public static void setUpClass() {
        
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of setGraph method, of class Map.
     */
    @Test
    public void testSetGraph() {
        System.out.println("setGraph");
        Graph g = null;
        Map test = new Map();
        test.setGraph(g);
    }

    /**
     * Test of setRoute method, of class Map.
     */
    @Test
    public void testSetRoute() {
        System.out.println("setRoute");
        Route r = null;
        Map test = new Map();
        test.setRoute(r);
    }

    /**
     * Test of setOffset method, of class Map.
     */
    @Test
    public void testSetOffset() {
        System.out.println("setOffset");
        double x = 0.0;
        double y = 0.0;
        Map test = new Map();
        test.setOffset(x, y);
    }

    /**
     * Test of getXOffset method, of class Map.
     */
    @Test
    public void testGetXOffset() {
        System.out.println("getXOffset");
        Map test = new Map();
        double expResult = 0.0;
        double result = test.getXOffset();
        assertEquals(expResult, result, 0.0);
    }

    /**
     * Test of getYOffset method, of class Map.
     */
    @Test
    public void testGetYOffset() {
        System.out.println("getYOffset");
        Map test = new Map();
        double expResult = 0.0;
        double result = test.getYOffset();
        assertEquals(expResult, result, 0.0);
    }

    /**
     * Test of paintComponent method, of class Map.
     */
    @Test
    public void testPaintComponent() {
        System.out.println("paintComponent");
        Graphics g = null;
        Map test = new Map();
        test.paintComponent(g);
    }

    /**
     * Test of getZoom method, of class Map.
     */
    @Test
    public void testGetZoom() {
        System.out.println("getZoom");
        Map test = new Map();
        double expResult = 0.0;
        double result = test.getZoom();
        assertEquals(expResult, result, 0.0);
    }

    /**
     * Test of setZoom method, of class Map.
     */
    @Test
    public void testSetZoom() {
        System.out.println("setZoom");
        double zoom = 0.0;
        Map test = new Map();
        test.setZoom(zoom);
    }
    
}
